<?php if (count($products) > 0): ?>
<div class="row-fluid list_news">
    <div class="span12 " >
        <h3 class="spcl"><?php echo $title;?></h3>
    </div>
    <div class="row-fluid list_spcl">
        <?php foreach ($products as $product): ?>
        <?php
        $image = is_null($product->image_name) ? '/images/no_image.jpg' : '/images/products/thumbnails/' . $product->image_name;
        $product_name = shorten_str($product->product_name, PRODUCT_NAME_MAXLENGTH);
        $uri = get_base_url() . url_title($product->category, 'dash', TRUE) . '-c' . $product->categories_id . '/' . get_uri_product($product->product_name, $product->id);
        ?>
        <div class="span2 de_spcl">
            <a href="<?php echo $uri;?>" class="thumbnail">
                <img src="<?php echo $image;?>" alt="<?php echo $product->product_name;?>">
            </a>
            <div>
                <a href="<?php echo $uri;?>" style="text-decoration: none;font-weight: bold;"><?php echo $product_name;?></a>
            </div>
        </div>
        <?php endforeach; ?>
    </div>
</div>
<?php endif; ?>